package com.wx.core.vo;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import lombok.Data;

/**
 * 用户发送给公众号的消息；
 */
@Data
@XmlRootElement(name="xml")
@XmlAccessorType(XmlAccessType.FIELD)
public class MsgRequest {

	private String MsgType;// 消息类型
	
	private String MsgId;
	
	private String FromUserName;// openid
	
	@XStreamAlias("ToUserName")
	private String ToUserName;
	
	private String CreateTime;

	// 文本消息
	private String Content;

	// 图片消息
	private String PicUrl;

	// 资源ID-->
	private String MediaId;

	// 音频格式
	private String Format;

	// 视频缩略图
	private String ThumbMediaId;

	// 连接消息
	private String Title;
	
	private String Description;
	
	private String Url;

	// 地理位置消息-->
	private String Location_X;
	
	private String Location_Y;
	
	private String Scale;
	
	private String Label;

	// 事件消息
	private String Event;
	
	private String EventKey;

	//群发消息
	private String Status;
	
	private int TotalCount;
	
	private int FilterCount;
	
	private int SentCount;
	
	private int ErrorCount;
	//block end
	
	// 认证成功
	private long ExpiredTime;
	// 认证失败
	private long FailTime;
	
	private String FailReason;
	//block end
	
	//自动上传经纬度
	//地理位置精度
	private String Longitude;
	
	//地理位置纬度
	private String Latitude;
	
	//地理位置精度
	private String Precision;
	//block end
	
	//点击菜单拉取消息时的事件推送
	//事件KEY值，与自定义菜单接口中KEY值对应
	private String MenuId;
	
	//扫码推事件的事件推送
	private ScanCodeInfo ScanCodeInfo;
}
